package com.thon.dao.project;


import java.util.Date;

import com.thon.dao.util.BaseDao;
import com.thon.dao.util.Page;
import com.thon.entity.project.Project;
import com.thon.entity.project.ProjectComment;

/**
 * @file ProjectCommentDao.java
 * @author Zemo
 * @mail zemochen@gmail.com
 * @data 2013年10月11日 上午11:31:52
 * @description: TODO
 */
public interface ProjectCommentDao extends BaseDao<ProjectComment> {
	
	public Page<ProjectComment> findProjectCommentByProject(Page<ProjectComment> page ,String by,int id);
	
	public Long countUnreadProjectComment(Integer isRead,Integer projectId,Integer userId);
	
	public Long countUnreadPreferentionComment(Integer isRead,Integer projectId,Integer userId);

	public Page<ProjectComment> findCommentByUser(
			Page<ProjectComment> comments, Integer userId);
	
}
